﻿@model BYSJ.Web.Models.BieBiao
@{
    Layout = "~/Views/huDong/HuDong.cshtml";
}
@section huDonghuifu{
<div class="enptyhuifu">
    <div class="tiwendaohang">
        <a class="huifufenlei">最新</a>
        @*<a class="remenfenlei">热门</a>*@
    </div>
    <div class="tiwenkongbai">
        <ul class="huifuall">
            @foreach (var item in Model.hudonglist)
            {
            <li>         
                <div class="alldiv">
                    
                            <div class="huifucount">
                                <div class="huifucountbeijing">
                                    <span title="回复数">@item.count</span>
                                </div>
                            </div>
                            <div class="huifucontent">
                                <div class="huifutitle">
                                    <div class="threadlist_title pull_left j_th_tit ">
                                        <a href="/showAnswer/@item.name/@item.Id" title="@item.title" class="j_th_tit ">@item.title</a>
                                    </div>
                                    <div class="threadlist_author pull_right">
                                        <i class="icon_author"></i>
                                        <span class="pull-left is_show_create_time" title="创建人">@item.name</span>
                                        <span class="pull-right is_show_create_time" title="创建时间">@item.creattime</span>
                                    </div>
                                </div>
                                <div class="huifunew">
                                    <div class="threadlist_text pull_left">
                                        <div class="threadlist_abs threadlist_abs_onlyline ">
                                           @item.answercontent
                                        </div>
                                        <div class="threadlist_author pull_right">
                                            <i class="icon_replyer"></i>
                                            <span class="tb_icon_author_rely j_replyer" title="最后回复人: @item.answername">

                                                <a class="frs-author-name j_user_card " href="" target="_blank">@item.answername</a>
                                            </span>
                                            <span class="threadlist_reply_date pull_right j_reply_data" title="最后回复时间">
                                              @item.answertime
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        
                </div>
            </li>
            }

        </ul>
        
    </div>
    <div class="pagination">
        <ul>
             
                   @for (int i =1; i <= @Model.pagcount; i++)
                   {
                     if (i <=@Model.pagemax && i>@Model.pagemin)
                     {
                       <li><a href="/huDong/@Model.name/@i">@i</a></li>
                     }
                      else if(i>@Model.pagemax)
                     {
                         <li><a href="#fakelink">@Model.pagemax-@Model.pagcount</a></li>
                          break;
                     }
                   }
               
            
        </ul>
    </div>
</div>
    }
